Allocation of resources in packet-switched data transfer

ABSTRACT

The invention relates to a method for arranging the transfer of packets between a wireless data transfer device (MS) and a mobile communication network (NW). For transferring packets between the wireless data transfer device (MS) and the mobile communication network (NW), temporary block flows (UL TBF, DL TBF) are formed, and information is transferred in these block flows in one ore more packet data traffic channels (PDTCH) either in the first direction from the mobile communication network (NW) to the wireless data transfer device (MS) or in the second direction from the wireless data transfer device (MS) to the mobile communication network. In the method, information about the end of the block flow is set in a packet ( 302 ) to be transmitted in a block flow when data transfer has stopped. When the transfer of packets in said first direction has stopped, at least one enquiry message ( 306 ) is also sent from the mobile communication network (NW) to the wireless data transfer device (MS). If there are packets to be sent to the mobile communication network (NW) in the wireless data transfer device (MS), a reply message ( 307 ) to said enquiry message ( 306 ) is sent from the wireless data transfer device (MS), which also sets information about the need to send packets in the reply message ( 307 ).

[0001] The present invention relates to a method according to the preamble of claim 1, a data transfer system according to the preamble of claim 13, and a wireless data transfer device according to the preamble of claim 18.

[0002] The term “wireless data transfer system” is generally used to mean any data transfer system, which enables a wireless data transfer connection between a wireless data transfer device (MS) and fixed parts of the system when the user of the wireless data transfer device is moving in the operating region of the system. A typical wireless data transfer system is the Public Land Mobile Network PLMN. Most of the wireless data transfer systems that exist at the time of filing this application belong to so-called second generation wireless data transfer device systems, an example of which is the widely known GSM system (Global System for Mobile telecommunications). The present invention is especially suitable for the packet-switched wireless data transfer device systems being developed now. An example of these wireless data transfer device systems used in this specification is the GPRS system (General Packet Radio Service), the standardization of which is under way now. It is clear that the invention can also be applied in other wireless data transfer device systems in which packet-switched data transfer is applied.

[0003] The General Packet Radio Service (GPRS) is a new service being developed for the GSM wireless data transfer device system. The operational environment of the GPRS system comprises one or more subnetwork service areas, which are combined as a GPRS backbone network. The subnetwork comprises several Support Nodes (SN), examples of which used in this specification are the Serving GPRS Support Nodes (SGSN), which are connected to the mobile network (typically via a connection unit to the base station) so that they can offer packet switched services to the wireless data transfer devices via the base stations (cells). The mobile network offers packet-switched information transfer between the support node and the wireless data transfer device. Different subnetworks, in turn, are connected via the GPRS Gateway Support Nodes (GGSN) to an external data network, such as a Public Switched Data Network (PSDN). The GPRS service thus enables packet-switched transfer of information between a wireless data transfer device and an external data network, whereby certain parts of the mobile network form an access network.

[0004] In order to use the GPRS services, the wireless data transfer device performs at first a GPRS attach, by which it notifies that it is ready for the transmission of packet data. The attach forms a logical link between the wireless data transfer device and the support node SGSN, and thus enables the transmission of short messages (SMS, Short Message Services) via the GPRS network, paging via a support node and notification of packet data to the wireless data transfer device. While the wireless data transfer device is attaching to the network, the support node performs the mobility management (MM) operation and user identification. In order to transmit and receive information, a Packet Data Protocol (PDP) is activated, whereby a packet data address to be used in a packet data connection is specified for the wireless data transfer device, and thus the address of the wireless data transfer device is known in the gateway GPRS support node. When the attach is performed, a data transfer connection is established with the wireless data transfer device, the support node and the gateway GPRS support node, and a protocol (such as (X.25 or IP), a connection address (e.g. X.121 address), Quality of Service and Network Service Access Point Identifier (NSAPI) are specified for the connection. The wireless data transfer device activates a packet data connection with an Activate PDP Context Request, in which the wireless data transfer device gives the Temporary Logical Link Identity (TLLI), the type of the packet data connection, the address, the required Quality of Service, the Network Service Access Point Identifier and possibly also the Access Point Name (APN).

[0005] The Quality of Service specifies, for instance, how Packet Data Units (PDU) are handled during the transfer in the GPRS network. The Qualities of Service defined for connection addresses, for example, are used to control the order of transmission, buffering (packet queues) and the rejection of packets in the support node and the gateway GPRS support node especially in situations where there are packets to be sent in two or more connections simultaneously. Different qualities of service specify different delays for the transfer of packets between different ends of the connection, different bit rates, and the number of packets rejected may be different in connections with different qualities of service. Four different Quality of Service classes have been formed in the GPRS system, and these classes specify the Quality of Service offered by the LLC layer to the connection.

[0006] Reliability determines whether acknowledgement is used (ARQ) or not (no ARQ) in the Logical Link Control (LLC) and Radio Link Control (RLC) layer in data transfer. In addition, reliability determines whether protected mode is used in non-acknowledged data transfer, and whether the GPRS backbone network uses the TCP or UDP protocol in the transfer of packets that belong to the connection.

[0007] The attached FIG. 1 shows the operation of a known LLC protocol layer 101 in the wireless data transfer device and in the GPRS support node. Block 102 represents the operations of the known RLC/MAC (Radio Link Control/Media Access Control) layer that are needed between the LLC layer 101 and the wireless data transfer device (not shown). Correspondingly, block 103 represents the operations of the known BSSGP (Base Station Subsystem GPRS Part) layer that are needed between the LLC layer 101 and the closest serving GPRS support node (not shown). The interface between the LLC layer 101 and the RLC/MAC layers is called the RR interface, and the interface between the LLC layer 101 and the BSSGP layers is called the BSSGP interface.

[0008] Above the LLC layer 101, there are the known GPRS mobility management operations 104, the SNDCP operations 105 and the short message service operations 106, which belong to layer 3 in the layered structure described here. Each of these blocks has one or more connection points to the LLC layer 101 for connecting to its different parts. The logical link control block 107 has a Logical Link—GPRS Mobility Management (LLGMM) control connection to block 104. The mobility management information is routed via the LLGMM connection between the blocks 104 and the first LLE (Logical Link Entity) block of the LLC layer. The second 109, third 110, fourth 111 and fifth 112 LLE block are connected to block 105 via corresponding connections. These blocks are also called QoS 1, QoS 2, QoS 3 and QoS 4 according to the Quality of Service of the packets handled by these blocks. The sixth LLE block 113 of the LLC layer is connected to the block 106 via the LLSMS (Logical Link—Short Message Service) connection. The Service Access Point Identifiers of the first 108, second 109, third 110, fourth 111, fifth 112 and sixth LLE block are 1, 3, 5, 9, 11 and 7, respectively. Each of these LLE blocks is linked in the LLC layer to the multiplexing block 114, which processes connections via the RR interface to block 102 and further to the wireless data transfer device, as well as connections via the BSSGP connection to block 103 and further towards the support node SGSN.

[0009] The connection between the multiplexing block 114 and block 102 of the lower level towards the wireless data transfer device is called the transmission pipe. All packet data flows between the upper parts of the LLC layer and the lower layers 102 go through the same multiplexing block 114 and transmission pipe. For the packet data transfer of the LLC layer 101 in the GPRS system, it is possible to create Temporary Block Flows (TBF) between the wireless data transfer device and the mobile network. Such a temporary block flow can be started either by the wireless data transfer device or the mobile network. These temporary block flows are temporary block flows of the RLC/MAC layer, in which information of the LLC layer is transferred. A temporary block flow may be intended for data transfer either from the mobile network to the wireless data transfer device, which is denoted shortly by DL TBF (Downlink TBF) in the signalling diagrams of FIGS. 2, 3a and 3 b, or from the wireless data transfer device to the mobile network, in which case it is denoted by UL TBF (Uplink TBF).

[0010]FIG. 2 is a signalling diagram of prior art packet data transfer, in which temporary block flows are used. The block flow is preferably formed by means of a control channel, such as PCCCH or CCCH, by configuring a packet channel PDTCH. This is represented by block 201 in FIG. 2. When the temporary block flow has been formed, the transfer of packets is started (arrow 202). Each RLC packet sent by the mobile network to the wireless data transfer device contains a Final Block Indicator (FBI). The purpose of this final block indicator is to inform the wireless data transfer device when the mobile network no longer has information to be sent to the wireless data transfer device in the block flow, whereupon this temporary block flow can be stopped. In order to receive packets, the wireless data transfer device switches to the Packet Transfer Mode and starts listening to the packet data channel and receiving packets.

[0011] The mobile network sets information about this in the last packet to be transmitted (arrow 203), for example by setting the final bit of the packets in the packet header field to the value true (e.g. the logical mode 1). Then the wireless data transfer device knows that it was the last packet received in this block flow. This packet also contains the Relative Reserved Block Period (RRBP) field, in which the mobile network can inform the wireless data transfer device in which time slot the wireless data transfer device can send the acknowledge message. Having received this last packet, the wireless data transfer device transmits an acknowledgement message (204) to the mobile network in the given time slot and starts a timer (block 205), such as T3192 in the GPRS system, for time-out consideration. If the RLC Acknowledged Mode has been used in the block flow, the wireless data transfer device sends as acknowledgement the Packet Downlink Ack/Nack message, in which the Final Ack Indicator (FAI) is set to the value true, preferably the logical mode 1. The value of this final bit notifies the mobile network that retransmission of packets is not needed (any more), because all packets have been received. If the RLC Unacknowledged Mode has been used in the block flow, the wireless data transfer device sends the Packet Control Ack message as the acknowledgement message. The wireless data transfer device still continues listening to the packet data transfer channel PDTCH in case the wireless data transfer device would have to send the acknowledgement message again, until the time set in the timer T3192 has expired. After this, the wireless data transfer device switches to the idle state. A timer is also started in the mobile network, such as T3193 in the GPRS system, when the mobile network has received the acknowledgement message from the wireless data transfer device. After the time specified in the timer has expired, the mobile network releases the temporary block flow.

[0012] If the wireless data transfer device has packets to be sent in the idle mode, the wireless data transfer device cannot start sending these packets directly, but it must at first switch from the idle mode to the active mode (packet transmission mode). After this, the wireless data transfer device starts the procedure for forming a temporary block flow in the control channel, such as the above mentioned PCCCH or CCCH control channel (block 206). The transfer of packets from the wireless data transfer device to the mobile network can be started after the temporary block flow has been formed. The signalling performed during the formation is represented by arrows 207 and 208, and the configuration of the packet channel by block 209. The time needed for the request for resources and the formation of the temporary block flow may be as much as several seconds. In practice, an arrangement like the one described above delays the transfer of packets, because the wireless data transfer device must first wait for the end of the time-out consideration and switch to the idle mode before a new temporary block flow can be formed. In addition, establishing the connection causes extra loading of the control channel. Situations like the one described above arise especially in connection with the signalling processes, in which the wireless data transfer device must send a reply to a message sent by the mobile network substantially immediately.

[0013] If the mobile network has asked, in connection with the transmission of packets, the wireless data transfer device to send acknowledgement messages, the wireless data transfer device can inform the mobile network of the need to send packets in these acknowledgement messages. However, the mobile network does not always ask for acknowledgements, and so in a situation like this the wireless data transfer device does not have a chance to ask for resources for the transfer of packets before the acknowledgement after the reception of the last packet. Because at this stage the temporary block flow has ended and no transmission time slot has been reserved for the wireless data transfer device, the wireless data transfer device cannot send a request for resources. This means that the wireless data transfer device must switch to the idle mode and back before it can ask for resources for the transmission of packets.

[0014] Even when the acknowledged mode is used, there may be problems in sending the block flow request on time. The wireless data transfer device can set a Channel Request Description IE in the acknowledgement message, whereby the mobile network may try to allocate resources for establishing a temporary block flow from the wireless data transfer device to the mobile network. In this situation, the mobile network sends a resource allocation message (such as Packet Uplink Assignment) to the wireless data transfer device, after which the wireless data transfer device can start the transmission of packets. However, in all situations the wireless data transfer device does not have time to ask for the allocation of resources before it has to send the acknowledgement message. The reason for this may be, for instance, that packets of an application layer (e.g. information related to an Internet browser, such as information of a home page) are being transmitted in an RLC packet received by the wireless data transfer device in a block flow, in which case the packet must be moved from the RLC layer to the LLC layer. In the LLC layer, the LLC frame structure is dismantled and transferred to the TCP/IP layer via the SNDCP layer. From the TCP/IP layer, the information contained by the packet is transmitted to the application. After this, the application can form a reply message, for example, to be transmitted further via the mobile network. Reverse measures are then performed, i.e. the information of the application layer is transformed via the intermediate layers to information of the LLC layer and further to RLC packets. The time taken by this whole process may be so long that information about the need to transmit packets is not received in the RLC layer before the acknowledgement message of the RLC layer is sent to the mobile network.

[0015] In the GPRS system, the wireless data transfer device has a time of 13-26 TDMA frames (one frame is ca. 4.615 ms) to send an acknowledgement message. This time is influenced by the value of the RRBP field in the packet transmitted by the mobile network. This means that the upper layers of the protocol stack have approx. 60 to 120 ms of time to form the packet to be transmitted and move it to the RLC layer. In practical situations this does not often succeed, and thus the wireless data transfer device must first switch to the idle mode before a temporary packet flow from the wireless data transfer device to the mobile network can be formed.

[0016] The purpose of the present invention is to reduce the above mentioned drawbacks and to accomplish a more efficient method and system in packet-switched data transfer between a wireless data transfer device and a mobile network. The invention is based on the idea that when the last packet of each packet transfer has been transferred from the mobile network to a wireless terminal device, such as a wireless data transfer device, a enquiry message is transmitted from the mobile network to the wireless terminal device, to which enquiry message the terminal device can send a reply and when required, ask for resources for data transfer from the wireless terminal device to the mobile network. If there are packet data units to be sent in the wireless data transfer device, the formation of a temporary block flow can be started without the wireless data transfer device switching to the idle mode and back. The method according to the invention is characterized in what is set forth in the characterizing part of claim 1. The data transfer system according to the invention is characterized in what is set forth in the characterizing part of claim 13. The wireless data transfer device according to the invention is characterized in what is set forth in the characterizing part of claim 18.

[0017] The present invention provides considerable advantages as compared to the prior art methods and systems. With the method according to the invention, the transfer of packets from the wireless data transfer device can be started faster than in the prior art solutions. In addition, the invention can reduce the traffic on the control channel when a temporary block flow is formed, and thus the resources of the mobile network can be used more efficiently.

[0018] In the following, the invention will be described in more detail with reference to the accompanying drawings, in which

[0019]FIG. 1 shows a prior art protocol stack,

[0020]FIG. 2 is a schematic signalling diagram of the establishment of a packet-switched connection according to prior art,

[0021]FIG. 3a is a schematic signalling diagram of the establishment of a packet-switched connection from the wireless data transfer device to the mobile network according to a preferred embodiment of the invention,

[0022]FIG. 3b is a schematic signalling diagram of a situation in which there are no packets to be sent to the mobile network in the wireless data transfer device,

[0023]FIG. 3c is a schematic signalling diagram of the establishment of a packet-switched connection from the wireless data transfer device to the mobile network according to another preferred embodiment of the invention,

[0024]FIG. 3d is a schematic signalling diagram of the establishment of a packet-switched connection from the wireless data transfer device to the mobile network according to yet another preferred embodiment of the invention, and

[0025]FIG. 4 shows an advantageous system in which the invention can be applied.

[0026] A wireless data transfer system of the GPRS type shown as a simplified diagram in FIG. 4 will be used as an example in the following description of a preferred embodiment of the invention, but it is clear that the invention is not limited to this system only, but it can also be applied in other message transmission systems, in which packet-switched data transmission is used. In a mobile network, which uses the GPRS system, data transfer between the wireless data transfer device MS and the support node SGSN of the mobile network is preferably performed via the base station BS.

[0027] The transfer of packets from the mobile network NW towards the wireless data transfer device MS will be discussed at first in the following. It is assumed that the wireless data transfer device MS is in the idle mode and that it listens to the traffic of a control channel in order to detect messages possibly sent to the wireless data transfer device.

[0028] In order to start the transfer of packets, the procedure for establishing a temporary block flow is started at first. In the following example, the establishment of a temporary block flow will be described using the PCCCH channel as the control channel, but the corresponding principles can also be applied to the CCCH channel. FIG. 3a illustrates the establishment of the connection and the transfer of packets between the wireless data transfer device MS and the mobile network NW as a schematic signalling diagram. Correspondingly, FIG. 3b illustrates a situation in which the transmission of packets from the wireless data transfer device MS is not started when the transmission of packets received from the mobile network NW has ended. In a situation that there are packets of the LLC layer to be sent to the wireless data transfer device MS from the mobile network NW, the support node SGSN starts the establishment of a temporary connection. The wireless data transfer device is then preferably in the idle mode and listens to the traffic in the control channel. In order to start data transfer, a packet data traffic channel PDTCH, where resources are allocated for the packet-switched connection, is configured (block 301). The mobile network NW allocates one or more Packet Data Traffic Channels (PDTCH) for the connection. The number of channels (e.g. time slots) to be allocated depends on, for instance, the settings made by the operator of the mobile network NW, the Quality of Service reserved for the connection, the packet connection properties of the receiving wireless data transfer device, etc. The mobile network NW sends a Packet Downlink Assignment message to the wireless data transfer device MS. The assignment message may contain, for instance, the Temporary Flow Identity (TFI), timing information, on the basis of which the wireless data transfer device can estimate the starting time of the transmission of data packets, and information about the time slot or periods in which the packets of the packet connection are transferred. In order to receive packets, the wireless data transfer device switches to the Packet Transfer Mode and preferably starts the timer. The identifier T3190 is used for this timer in the GPRS system. After this, the wireless data transfer device starts listening to the packet data traffic channel and receiving packets. The purpose of the timer is to prevent the wireless data transfer device from staying in the packet reception mode in error situations and when the transmission of packets has ended. Error situations may arise when, for example, the wireless data transfer device cannot receive packets for some reason or the mobile network does not send packets. Error situations are not dealt with in more detail in this specification, because the procedures are known as such.

[0029] The mobile network sends packets in the packet data traffic channel PDTCH (arrow 302). The wireless data transfer device MS receives each packet and sends an acknowledgement message, if the mobile network NW has asked for it. By the acknowledgement message, the wireless data transfer device MS can inform the mobile network NW that the packet has either been received successfully (ACK) or that there have been errors in the reception (NACK). If the mobile network NW has asked for the transmission of acknowledgement messages, the wireless data transfer device MS can also use the acknowledgement messages to notify the mobile network NW of the need to transmit packets as long as the temporary block flow DL TBF is activated.

[0030] The mobile network NW sets information about the end of the packets in the last packet to be transmitted (arrow 303), for example by setting the Final Block Indicator (FBI) in the packet header field to the value true (e.g. the logical mode 1). Then the wireless data transfer device MS knows that it was the last packet received in this block flow. The wireless data transfer device sends an acknowledgement message to the mobile network (arrow 304) and starts another timer, such as T3192 in the GPRS system (block 305).

[0031] After the mobile network NW has received information that the last packet has been received, in a system according to a preferred embodiment of the invention the mobile network sends a enquiry message 306 (such as Packet Power Control/Timing Advance (RRBP)), in which the enquiry information (the RRBP field in the GPRS system) has been set, and the wireless data transfer device can answer the enquiry by using the radio resource reserved for the wireless data transfer device MS, which was notified in the enquiry message. In addition, preferably the same identifier TFI reserved for the wireless data transfer device as was used in the ended block flow is used in this enquiry message. Setting the enquiry information in the message means in practice that the wireless data transfer device MS is expected to send a reply message in the allocated radio resource.

[0032] If, however, the wireless data transfer device MS has packets to be sent, it does not send the normal Packet Control Acknowledgement message, but having received this enquiry message, the wireless data transfer device sends a PACKET_RESOURCE_REQUEST 307 to the mobile network NW for establishing a temporary block flow for the transfer of packets, if there are packets in the wireless data transfer device MS waiting for transmission. In addition, the wireless data transfer device preferably starts the timer T3168 and continues listening to the packet data traffic channels PDTCH. In other case, the wireless data transfer device MS replies normally with the PACKET_CONTROL_ACKNOWLEDGEMENT message 310 (FIG. 3b). If the wireless data transfer device MS did send a request for the allocation of packet resources, the mobile network NW detects that the wireless data transfer device MS has packets to be sent and can start the allocation of resources for a new temporary block flow.

[0033] If the wireless data transfer device MS did send a resource allocation request 307 to the mobile network NW, it is examined whether it has sufficiently resources available at the moment for the establishment of a block flow. If there are resources available, the mobile network NW sends a PACKET_UPLINK_ASSIGNMENT message 308 to the wireless data transfer device MS. After the configuration measures needed for establishing a temporary block flow have been performed, the wireless data transfer device MS can start the transfer of packets essentially immediately (block 309). After this, operation continues in a manner known as such.

[0034] In a system according to another preferred embodiment of the invention, which is shown as a schematic signalling diagram in FIG. 3c, the procedure is the following. After the mobile network NW has received information that the last packet has been received, the mobile network sends in a data channel an assignment message 312 (such as Packet Uplink Assignment), in which the wireless data transfer device has been informed in which time slot it can send a temporary packet resource allocation request 307, if required. After this, the operation continues as shown in FIG. 3a.

[0035] In a system according to yet another preferred embodiment of the invention, the procedure may also be the following (FIG. 3d). The mobile network sends 311 advantageously the last data packet again after the mobile network NW has received information that the last packet has been received. In this retransmitted packet, the final bit has been set in the value true, and the wireless data transfer device has been allocated a resource for sending acknowledgement. In addition, in this repeated packet it is also possible to try to set the value of the RRBP field such that the wireless data transfer device MS would have as long a time as possible for sending the acknowledgement message. The wireless data transfer device is expected to send acknowledgement to this message. If the RLC layer in the wireless data transfer device has now received information that there are packets to be sent to the mobile network, the wireless data transfer device can send a temporary packet resource allocation request 307, as was described earlier in this specification, by setting a resource allocation request in the acknowledgement message.

[0036] Having received the acknowledgement message, the mobile network examines whether the resource allocation request has been set in it. If it has not been set, the mobile network may repeat the transmission of this last packet N times, where N is a value selected in advance. Then the length of the time given to the wireless data transfer device for requesting resources can be set as suitable in the existing systems by selecting N so that on one hand, needlessly long waiting times are avoided, and on the other hand, in practical situations the wireless data transfer device generally has sufficiently long a time for sending the resource allocation request. If the mobile network NW detected that a resource allocation request has been set, the mobile network starts the procedure for establishing a temporary block flow and stops the repeated transmissions of the last packet. In this embodiment, the wireless data transfer device starts the timer T3192 preferably again in connection with the transmission of the acknowledgement message. Correspondingly, the mobile network NW starts the timer T3193 again when it has received the acknowledgement message from the wireless data transfer device MS.

[0037] The purpose of starting the above mentioned timers T3168, T3192 is, among other things, to prevent the wireless data transfer device MS from staying to wait for messages sent by the mobile network NW for unnecessarily long a time in error situations, for example. Then, if the wireless data transfer device MS does not receive a packet connection assignment message 308, for example, from the mobile network NW before the time set in the timer T3192 has expired, the wireless data transfer device MS preferably switches to the idle mode in the known manner.

[0038] In a system according to yet another embodiment of the invention, the mobile network NW does not automatically send a enquiry message 306 after the last data packet transmitted, but the mobile network NW concludes on the basis of the type of the information to be transferred, for example, whether a need to transfer packets from the wireless data transfer device MS to the mobile network NW is expected. The situation like this is for instance when the information to be transferred consists of signalling messages of the mobile network NW and the wireless data transfer device MS, to which a reply message is expected from the wireless data transfer device MS.

[0039] In a system according to yet another preferred embodiment of the invention, the wireless data transfer device MS can conclude whether it has a need to transmit packets to the mobile network NW after the wireless data transfer device MS has received the packets transmitted from the mobile network NW. Then the procedure may preferably be the following. The wireless data transfer device MS sets in the acknowledgement message it sends to the last received packet the information that the wireless data transfer device MS may relatively soon have a need to send packets. This information may include a mention of a period of time after which the wireless data transfer device MS will ask for resources for the transmission of packets, if required. The mobile network can then set time-out consideration and maintain the information needed to establish a new temporary block flow. In this embodiment, the mobile network NW sends the enquiry message 306 mentioned in connection with the description of the first preferred embodiment of the invention preferably after the period of time given by the wireless data transfer device MS. As a reply to this enquiry message, the wireless data transfer device MS sends the resource allocation request 307 in a situation where the wireless data transfer device MS has packets to be transmitted. However, if there are no packets to be sent within the time specified by the time-out information, operation continues preferably in accordance with the prior art. By this arrangement, the use of radio resources can be reduced further when forming the temporary block flows.

[0040] By the arrangement according to the invention, the loading of the common control channels can be reduced, because in situations like those described above, the resource allocation request can be implemented by using a data channel, which is assigned to at least the wireless data transfer device in question. Resources are then released from the control channels to other message transmission.

[0041] The Relative Reserved Block Period field RRBP mentioned above in the description of the invention can be advantageously applied in the GPRS system, for instance, in the following manner. There are now two bits reserved for the field, and when the present invention is applied, their meaning can be defined according to the following Table 1 in a system used as an example. TABLE 1 The transmission block period reserved for the wireless data B0 B1 transfer device 0 0 Number of TDMA frame = (N + 13) mod 2715648 0 1 Number of TDMA frame = (N + 17 or N + 18) mod 2715648 1 0 Number of TDMA frame = (N + 21 or N + 22) mod 2715648 1 1 Number of TDMA frame = (N + 52 or N + 78) mod 2715648

[0042] When the wireless data transfer device MS receives a message, which contains the transmission block period field RRBP, the wireless data transfer device MS should send a reply message to the mobile network NW within ca. 60-120 ms (the first 3 alternatives of Table 3) from the reception of this message, depending on the value of the reply block period field. In this preferred embodiment, one row of the transmission block period field (B0=1, B1=1) has been reserved for a situation in which a longer time is reserved for the wireless data transfer device for forming the reply message. In the example of Table 1, this means that the wireless data transfer device MS has approx. 240 ms ((N+52) mod 2715648) or even approx. 360 ms ((N+78) mod 27.15648) of time to form the reply message. Then the establishment of a temporary block flow from the wireless data transfer device MS to the mobile network NW can be implemented as follows, for example.

[0043] The mobile network NW sets the final bit in the header field of the last data frame to the value true and the value 3 (B0=1, B1=1) to the transmission block period, if the wireless data transfer device does not have a temporary block flow in the direction of the mobile network at the moment. When required, the wireless data transfer device sets in the reply message the information about the need to establish a temporary block flow. If, however, such a temporary block flow already exists, the mobile network preferably sets the value 0 (B0=0, B1=0) in the transmission block period field, whereby the temporary block flow from the mobile network in the direction of the wireless data transfer device can be stopped as soon as possible.

[0044] One of the advantages provided by the embodiment described above is the fact that a new enquiry message need not be sent from the mobile network NW to the wireless data transfer device MS, and in spite of this the wireless data transfer device has more time to form the acknowledgement message than in the prior art solutions.

[0045] The packets to be transferred in the temporary block flows may be packets that are used for the transfer of information of an application, in which case the information packets are transferred in the known manner from the application level to the lower layers of the protocol stack to be transferred as packets of the RLC/MAC layer. In the Subnetwork Dependent Convergence Protocol (SNDCP) block the packets are divided, if required, to different queues according to the Quality of Service requirements specified for each packet. FIG. 1 shows four Qualities of Service (QoS) by way of example: first class, second class, third class and fourth class. However, with regard to the application of this invention it is not significant as such what kind of requirements for the quality of service have been set for different packets.

[0046] The SNDCP block transmits the packets via the Service Access Point (SAP) corresponding to the Quality of Service to the LLC layer. One Logical Link Entity (LLE) for each packet queue corresponding to a Quality of Service has preferably been formed in this logical link control (LLC) layer.

[0047] The Logical Link Entity performs the operations of the LLC protocol layer, such as possible retransmissions of the packets. Below the LLC layer, in the connection point between the wireless data transfer device and the mobile network, there is a RLC/MAC (Radio Link Control/Medium Access Control) layer in the protocol stack shown in FIG. 1. In a protocol stack according to the example used here, this is implemented by one RLC block, the tasks of which include for instance requesting the allocation of resources from the mobile network for all packets sent to the radio path.

[0048] In FIG. 1, a data transfer connection has been formed between the LLE and RLC block via the RR interface, but it is clear that an arrangement consisting of several RLC blocks can also be used in connection with the invention.

[0049]FIG. 4 shows the connections of a telecommunications network in a packet-switched GPRS service. In the infrastructure of the network, the main element for the GPRS services is the GPRS Support Node, GSN. It is a mobility router, which implements the connection and co-operation between different data networks, for example to the PSPDN (Public Switched Packet Data Network) via the connection Gi or to the GPRS network of another operator via the connection Gp, mobility management with the GPRS registers via the connection Gr, and the transmission of data packets to wireless data transfer devices MS irrespective of their location. Physically, the GPRS Support Node GSN can be integrated with the Mobile Switching Center (MSC) or it can be a separate network element based on the architecture of the data network routers. User data goes directly between the support node GSN and the base station system BSS consisting of the base stations BTS and base station controllers BSC via the connection Gb, but there is a signalling connection Gs between the support node GSN and the mobile switching center MSC. In FIG. 4, the solid lines between blocks represent data traffic (or the transfer of speech or data in digital form) and the broken lines represent signalling. Physically, data may pass transparently via the mobile switching center MSC. The radio interface between the wireless data transfer device MS and the fixed network goes via the base station BTS and is denoted by the reference Um. The references Abis and A denote the interface between the base station BTS and the base station controller BSC, and correspondingly between the base station controller BSC and the mobile switching centre MSC, which is a signalling connection. The reference Gn represents the connection between different support nodes of the same operator. The support nodes are generally divided into Gateway GPRS Support Nodes (Gateway GSN or GGSN) and Serving GPRS Support Nodes (Serving GSN or SGSN), as shown in FIG. 4. The GSM system is of the Time Division Multiple Access (TDMA) type, in which traffic in the radio path takes place by time division in consecutive TDMA frames, each of which consists of several (eight) time slots. In each time slot, the information packet is sent as a radio frequency burst of finite duration, which consists of a number of modulated bits. The time slots are used mainly as control channels and traffic channels. The traffic channels are used for the transfer of speech and data, and the control channels are used for signalling between the base station BTS and the wireless data transfer devices MS.

[0050] The RLC block according to the invention and its functionality can be implemented in the equipment used in the present mobile communication systems by making changes in the parts of the programs that deal with the implementation of the protocol stacks. In a wireless terminal MS the functions can be largely implemented in connection with the processing equipment CPU at least partly by programming. This processing equipment CPU preferably comprises at least one processor, and it can be realized by means of an Application Specific Integrated Circuit (not shown), for example. For radio data transfer, the wireless data transfer device MS is equipped with a radio part RF, in the known manner.

[0051] The present invention is not limited to the above described embodiments only, but its details can be modified without departing from the scope defined by the attached claims. The invention can also be applied in the Universal Mobile Telecommunication System (UMTS), for example. 

1. A method for arranging the transfer of packets between a wireless data transfer device (MS) and a mobile communication network (NW), in which method for transferring packets between a wireless data transfer device (MS) and a mobile communication network (NW) there are formed temporary packet flows (UL TBF, DL TBF), in which data is transferred in one or more packet data traffic channels (PDTCH) either in the first direction from the mobile communication network (NW) to the wireless data transfer device (MS), or in the second direction from the wireless data transfer device (MS) to the mobile communication network, and in which method, when data transfer ends in a packet flow, a notification of the end of the data transfer is added to the packet (302) to be transmitted, characterized in that when the transfer of packets in said first direction has ended, at least one enquiry message (306) is also sent from the mobile communication network (NW) to the wireless data transfer device (MS), and that if there are packets in the wireless data transfer device (MS) to be sent to the mobile communication network (NW), a response message (307) to said message (306) is sent from the wireless data transfer device, to which response message (307) the wireless data transfer device (MS) sets information about the need to send packets.
 2. A method according to claim 1 , characterized in that the formation of temporary block flows is carried out by means of signalling information transmitted in one or more control channels (PCCCH, CCCH, PACCH).
 3. A method according to claim 1 or 2 , characterized in that the processing of the information to be transmitted takes place according to a protocol stack, which includes at least an RLC/MAC layer.
 4. A method according to any one of the claims 1, 2 or 3, characterized in that said reply message (307) is a request message for the allocation of packet resources.
 5. A method according to any one of the claims 1 to 4 , characterized in that advantageously the last transmitted packet (302) is used as the enquiry message (306).
 6. A method according to any one of the claims 1 to 4 , characterized in that the Packet Power Control/Timing Advance message is used as the enquiry message (306).
 7. A method according to any one of the claims 1 to 4 , characterized in that the Packet Uplink Assignment message is used as the enquiry message (306).
 8. A method according to any one of the claims 5, 6 or 7, characterized in that the transmission of the enquiry message (306) is repeated, whereby the following steps are also performed in the method: the wireless data transfer device transmits a reply message (307), to which the wireless data transfer device (MS) sets information about the need to transmit packets, said reply message (307) is received in the mobile communication network and it is examined whether said information about the need to transmit packets has been set in the reply message, and if the information about the need to transmit packets has been set, the formation of a temporary block flow from the wireless data transfer device to the mobile communication network is started, otherwise said enquiry message (306) is transmitted again.
 9. A method according to any one of the claims 1 to 8 , characterized in that the mobile communication network is a GPRS packet-switched network.
 10. A method according to any one of the claims 1 to 5 , in which the wireless data transfer device (MS) has at least an active mode and an idle mode, characterized in that if the wireless data transfer device (MS) does not have packets to be transferred when the transfer of packets in the first direction is stopped, the wireless data transfer device (MS) is set to the idle mode.
 11. A method according to any one of the claims 1 to 10 , characterized in that when the transfer of packets has stopped, the wireless data transfer device (MS) sends an acknowledgement message (304) to the mobile communication network (NW), and that the wireless data transfer device (MS) sets in said acknowledgement message (304) at least information about the need to send packets.
 12. A method according to claim 11 , characterized in that the wireless data transfer device (MS) also sets in said acknowledgement message (304) information about the time of transmission of the enquiry message (306).
 13. A data transfer system, in which information is arranged to be transferred in packet form between a wireless data transfer device (MS) and a mobile communication network (NW), and which data transfer system comprises means (RF, BTS) for transferring packets between the wireless data transfer device (MS) and the mobile communication network (NW) in temporary block flows (UL TBF, DL TBF), in which information is arranged to be transferred in one ore more packet data traffic channels (PDTCH) either in the first direction from the mobile communication network (NW) to the wireless data transfer device (MS), or in the second direction from the wireless data transfer device (MS) to the mobile communication network (NW), and means for setting information about the end of the block flow in the packet to be transmitted (302) when data transfer ends in a block flow, characterized in that the data transfer system also comprises at least means (SGSN, BTS) for sending at least one enquiry message (306) from the mobile communication network (NW) to the wireless data transfer device (MS) when the transfer of packets in said first direction has stopped, means (CPU) for examining whether the wireless data transfer device (MS) contains packets to be sent to the mobile communication network (NW), whereby the wireless data transfer device (MS) comprises at least means (CPU) for forming a reply message (307) to said enquiry message (306), and means (CPU) for setting information about the need to send packets in said reply message (307).
 14. A data transfer system according to claim 13 , characterized in that the formation of temporary block flows is arranged to be performed by means of signalling information transmitted in one or more control channels (PCCCH, CCCH, PACCH).
 15. A data transfer system according to claim 13 or 14 , characterized in that a protocol stack for processing the information to be transmitted has been formed in the wireless data transfer device (MS) and the mobile communication network (NW), and that the protocol stack comprises at least an RLC/MAC layer.
 16. A data transfer system according to any one of the claims 13, 14 or 15, characterized in that said reply message (307) is a request message for the allocation of packet resources.
 17. A method according to any one of the claims 13 to 16 , characterized in that the mobile communication network is a GPRS packet-switched network.
 18. A wireless data transfer device for being used in a data transfer system, in which information is arranged to be transferred in packet form between a wireless data transfer device (MS) and a mobile communication network (NW), and which data transfer system comprises means (RF, BTS) for transferring packets between the wireless data transfer device (MS) and the mobile communication network (NW) in temporary block flows (UL TBF, DL TBF), in which information is arranged to be transferred in one or more packet data traffic channels (PDTCH) either in the first direction from the mobile communication network (NW) to the wireless data transfer device (MS), or in the second direction from the wireless data transfer device (MS) to the mobile communication network (NW), characterized in that the wireless data transfer device (MS) also comprises at least means (RF) for receiving a enquiry message (306) sent from the mobile communication network (NW), which enquiry message (306) has been sent after the transfer of packets has stopped in said first direction, means (CPU) for examining whether the wireless data transfer device (MS) has packets to be sent to the mobile communication network (NW), means (CPU) for forming a reply message (307) to said enquiry message, and means (CPU) for setting information about the need to send packets to said reply message (307).
 19. A wireless data transfer device (MS) according to claim 18 , characterized in that the wireless data transfer device (MS) comprises means (RF) for sending an acknowledgement message (304) to the mobile communication network (NW) when the transfer of packets has stopped, and means (CPU) for setting in said acknowledgement message (304) at least information about the need to send packets.
 20. A wireless data transfer device (MS) according to claim 19 , characterized in that the wireless data transfer device (MS) comprises means (CPU) for setting in said acknowledgement message (304) information about the time of transmission of the enquiry message (306). 